package com.boc.bus.control;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.Resource;

public class IocBeans {
	public static BeanFactory beanFactory = null;
	public IocBeans(String path){
		DefaultResourceLoader loader = new DefaultResourceLoader();
		Resource resource = loader.getResource("classpath:/"+path);
		beanFactory = new XmlBeanFactory(resource);
	}
	
}
